package cc.mycraft.events;

import org.bukkit.entity.LivingEntity;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

public final class EntityActSkillEvent extends Event implements Cancellable{
	
	private static final HandlerList handlers = new HandlerList();

	@Override
	public HandlerList getHandlers() {
		return handlers;
	}
	
	public static HandlerList getHandlerList() {
		return handlers;
	}
	
	private LivingEntity le;
	private byte ttype;
	private boolean cancelled;
	
	public EntityActSkillEvent(LivingEntity le,byte ttype) {
		this.cancelled = false;
		this.le = le;
		this.ttype = ttype;
	}
	public LivingEntity getEntity() {
		return this.le;
	}
	public byte getTigger() {
		return this.ttype;
	}
	public boolean isCancelled() {
		return this.cancelled;
	}
	public void setCancelled(boolean b) {
		this.cancelled = b;
	}
}
